package com.example.goodpet.bean;

import java.sql.Date;
import java.util.List;

public class PetInformation {
    /**
     * 发送时id表示用户id，接收时id表示宠物id
     */
    private long id;
    /**
     * 0表示猫，1表示狗，2表示其他
     */
    private int category;
    private String overview;
    private String place;
    private Date postdate;
    /**
     * 0表示弃养，1表示流浪
     */
    private int type;
    private List<String> petImage;

    public PetInformation() {
    }

    public PetInformation(long id, int category, String overview, String place, Date postdate, int type, List<String> petImage) {
        this.id = id;
        this.category = category;
        this.overview = overview;
        this.place = place;
        this.postdate = postdate;
        this.type = type;
        this.petImage = petImage;
    }

    @Override
    public String toString() {
        return "PetInformation{" +
                "id=" + id +
                ", category=" + category +
                ", overview='" + overview + '\'' +
                ", place='" + place + '\'' +
                ", postdate=" + postdate +
                ", type=" + type +
                ", petImage=" + petImage +
                '}';
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public String getOverview() {
        return overview;
    }

    public void setOverview(String overview) {
        this.overview = overview;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public Date getPostdate() {
        return postdate;
    }

    public void setPostdate(Date postdate) {
        this.postdate = postdate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<String> getPetImage() {
        return petImage;
    }

    public void setPetImage(List<String> petImage) {
        this.petImage = petImage;
    }
}
